import Vue from "vue";
import CopyPassword from "./index.vue";
export default class CopyPasswordDialog {
  constructor(payResult = {}, finalPrice = 0) {
    this.payResult = payResult;
    this.finalPrice = finalPrice;
  }
  perform() {
    const CopyPasswordConstructor = Vue.extend(CopyPassword);
    console.log(this.payResult);
    const instance = new CopyPasswordConstructor({
      propsData: {
        payResult:this.payResult,
				finalPrice: this.finalPrice
      },
    });
    instance.$mount();
    instance.showBox()
    document.body.appendChild(instance.$el);
  }
}